<?PHP

 // MinBS - Minimalist Blogging System
 // Developed by Juliano "tibone" Flores
 // http://code.google.com/p/minbs

require_once('required.php');
session_start();
if(!$_SESSION['minbs']=="logged"){
header("location:index.php");
}

$id = $_POST['id'];
$title = $_POST['title'];
$body = $_POST['body'];
$category = $_POST['category'];
$date = $_POST['date'];

$update_query = "UPDATE minbs_blog SET `title` = '$title', `body` = '$body', `category` = '$category' where `id` = '$id';";
$updated = mysql_query($update_query, $connection);

header("location:admin.php");


?>

